class MethodExec {
  def printRectangle(): Unit = {
    for (_ <- 1 to 8) {
      println("*" * 10)
    }
  }
}

object t2 {
  def main(args: Array[String]): Unit = {
    val methodExec = new MethodExec()

    methodExec.printRectangle()
  }
}
